package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.UserPointsLogBean;
import com.henghai.zhenxuan.databinding.AdapterIntegralItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class IntegralListAdapter extends SimpleDataBindingAdapter<UserPointsLogBean.RowsBean, AdapterIntegralItemBinding> {

    public IntegralListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_integral_item, DiffUtils.getInstance().getIntegralItemCallback());
    }

    @Override
    protected void onBindItem(AdapterIntegralItemBinding adapterTaskItemBinding, UserPointsLogBean.RowsBean integralBean, RecyclerView.ViewHolder viewHolder) {
        adapterTaskItemBinding.setIntegral(integralBean);
    }
}
